import 'package:formz/formz.dart';

enum CaseAddressValidationError { empty }

class CaseAddress extends FormzInput<String, CaseAddressValidationError> {
  const CaseAddress.pure() : super.pure('');
  const CaseAddress.dirty([String value = '']) : super.dirty(value);

  @override
  CaseAddressValidationError validator(String value) {
    return value?.isNotEmpty == true ? null : CaseAddressValidationError.empty;
  }
}
